home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / DiskInit.h < prev    next >
C/C++ Source or Header  |  1996-05-01  |  3KB  |  103 lines

  1. /*
  2.      File:        DiskInit.h
  3.  
  4.      Contains:    Disk Initialization Package ('PACK' 2) Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1984-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16.  
  17. */
  18. #ifndef __DISKINIT__
  19. #define __DISKINIT__
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24.  
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28.  
  29. #if PRAGMA_IMPORT_SUPPORTED
  30. #pragma import on
  31. #endif
  32.  
  33. #if PRAGMA_ALIGN_SUPPORTED
  34. #pragma options align=mac68k
  35. #endif
  36.  
  37. #if FOR_SYSTEM7_AND_SYSTEM8_DEPRECATED
  38. struct HFSDefaults {
  39.     char                             sigWord[2];                    /* signature word */
  40.     long                             abSize;                        /* allocation block size in bytes */
  41.     long                             clpSize;                    /* clump size in bytes */
  42.     long                             nxFreeFN;                    /* next free file number */
  43.     long                             btClpSize;                    /* B-Tree clump size in bytes */
  44.     short                             rsrv1;                        /* reserved */
  45.     short                             rsrv2;                        /* reserved */
  46.     short                             rsrv3;                        /* reserved */
  47. };
  48. typedef struct HFSDefaults HFSDefaults;
  49.  
  50. extern pascal void DILoad(void )
  51.  THREEWORDINLINE(0x7002, 0x3F00, 0xA9E9);
  52.  
  53. extern pascal void DIUnload(void )
  54.  THREEWORDINLINE(0x7004, 0x3F00, 0xA9E9);
  55.  
  56. extern pascal short DIBadMount(Point where, long evtMessage)
  57.  THREEWORDINLINE(0x7000, 0x3F00, 0xA9E9);
  58.  
  59. extern pascal OSErr DIFormat(short drvNum)
  60.  THREEWORDINLINE(0x7006, 0x3F00, 0xA9E9);
  61.  
  62. extern pascal OSErr DIVerify(short drvNum)
  63.  THREEWORDINLINE(0x7008, 0x3F00, 0xA9E9);
  64.  
  65. extern pascal OSErr DIZero(short drvNum, ConstStr255Param volName)
  66.  THREEWORDINLINE(0x700A, 0x3F00, 0xA9E9);
  67.  
  68. /*
  69.     DIXFormat, DIXZero, and DIReformat are only available when FSM (File System Manager) is installed.
  70.     FSM is part of Macintosh PC Exchange and System 7.5.
  71. */
  72. extern pascal OSErr DIXFormat(short drvNum, Boolean fmtFlag, unsigned long fmtArg, unsigned long *actSize)
  73.  THREEWORDINLINE(0x700C, 0x3F00, 0xA9E9);
  74.  
  75. extern pascal OSErr DIXZero(short drvNum, ConstStr255Param volName, short fsid, short mediaStatus, short volTypeSelector, unsigned long volSize, void *extendedInfoPtr)
  76.  THREEWORDINLINE(0x700E, 0x3F00, 0xA9E9);
  77.  
  78. extern pascal OSErr DIReformat(short drvNum, short fsid, ConstStr255Param volName, ConstStr255Param msgText)
  79.  THREEWORDINLINE(0x7010, 0x3F00, 0xA9E9);
  80.  
  81. #if CGLUESUPPORTED
  82. extern OSErr dibadmount(Point *where, long evtMessage);
  83.  
  84. extern OSErr dizero(short drvnum, const char *volName);
  85.  
  86. #endif
  87. #endif
  88.  
  89. #if PRAGMA_ALIGN_SUPPORTED
  90. #pragma options align=reset
  91. #endif
  92.  
  93. #if PRAGMA_IMPORT_SUPPORTED
  94. #pragma import off
  95. #endif
  96.  
  97. #ifdef __cplusplus
  98. }
  99. #endif
  100.  
  101. #endif /* __DISKINIT__ */
  102.  
  103.